/*
 * ============================================================================
 * Copyright Notice!
 * ----------------------------------------------------------------------------
 * This file contains proprietary and confidential information belonging to the
 * group of people involvled in developing this project.  Reproduction, disclosure 
 * or use without specific written authorization from project stake holders is 
 * prohibited. Please refer the readme.txt in project installation folder for more
 * specific contacts
 *
 * All rights reserved.
 * ============================================================================
 */
package edu.uwm.universitydb.framework.nontransactional.db.command.impl;

import java.sql.Connection;

import edu.uwm.universitydb.db.connection.DBConnectionFactory;
import edu.uwm.universitydb.framework.exception.DataAccessException;
import edu.uwm.universitydb.framework.nontransactional.db.command.NonTransactionalDBCommand;

/**
 * <code>BaseDBCommand</type> here
 * 
 * @author Shyam Nair
 */
public abstract class NonTransactionalDBCommandBase<T> implements NonTransactionalDBCommand<T>
{
    /**
     * <code>getConnection(...)</code> 
     * 
     * @return
     * @throws DataAccessException 
     */
    protected Connection getConnection() throws DataAccessException
    {
        final DBConnectionFactory connectionFactory = DBConnectionFactory.getInstance();
        return connectionFactory.getDBConnection();
    }

}


/*
 * ============================================================================
 * Change History
 * ----------------------------------------------------------------------------
 * Apr 6, 2014   Shyam Nair
 * File created
 * ----------------------------------------------------------------------------
 */